package com.nuboat.easyjsf.action;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author nuboat
 */
@RequestScoped
@ManagedBean(name="cond")
public class ConditionAction extends BaseAction {
    
    private String name;
    private boolean isRed;
    private int num;

    public ConditionAction() {
        name = "Mazda3";
        isRed = true;
        num = 5;
    }

    public String sayhi() {
        return null;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the isRed
     */
    public boolean getIsRed() {
        return this.isRed;
    }

    /**
     * @param isRed the isRed to set
     */
    public void setIsRed(boolean isRed) {
        this.isRed = isRed;
    }

    /**
     * @return the no
     */
    public int getNum() {
        return num;
    }

    /**
     * @param no the no to set
     */
    public void setNum(int num) {
        this.num = num;
    }
   
}